package com.yeban.javase.day20.test.test1;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/11/4
 */
public class Teacher01 {
    private String name;
    private int workAge;
    private String major;

    public Teacher01() {
    }

    public Teacher01(String name, int workAge, String major) {
        this.name = name;
        this.workAge = workAge;
        this.major = major;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return workAge
     */
    public int getWorkAge() {
        return workAge;
    }

    /**
     * 设置
     * @param workAge
     */
    public void setWorkAge(int workAge) {
        this.workAge = workAge;
    }

    /**
     * 获取
     * @return major
     */
    public String getMajor() {
        return major;
    }

    /**
     * 设置
     * @param major
     */
    public void setMajor(String major) {
        this.major = major;
    }

    public String toString() {
        return "Teacher01{name = " + name + ", workAge = " + workAge + ", major = " + major + "}";
    }
}
